package randomnumbergenerator;

import java.util.Scanner;

public class Solution {
	private static int gcd(int max, int min) {
		if(min == 0)
			return max;
		return gcd(min, max % min);
	}
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		try {
			int N = in.nextInt();
			for(int n = 0; n < N; n++) {
				int A = in.nextInt(), B = in.nextInt(), C = in.nextInt(), num, den;
				if(A + B <= C) {
					num = 1;
					den = 1;
				} else if(A > C && B > C) { // 1
					num = C * C;
					den = 2 * A * B;
				} else if(A > C && B <= C) { // 3
					num = 2 * C - B;
					den = 2 * A;
				} else if(A <= C && B > C) { // 2
					num = 2 * C - A;
					den = 2 * B;
				} else { // A <= C and B <= C
					num = 2 * A * C + 2 * B * C - A * A - B * B - C * C;
					den = 2 * A * B;
				}
				int gcd = gcd(Math.max(num, den), Math.min(num, den));
				System.out.println(num/gcd + "/" + den/gcd);
			}
		} finally {
			in.close();
		}
	}
}
